import { Post } from '@/utils/api.js'

const url = '/api/user'

export function login(username, password) {
  return Post(url + '/login', { username, password })
}

export function register(username, password) {
  return Post(url + '/register', { username, password })
}

export function debug() {
  return Post(url + '/debug')
}
